package com.niiwoo.civet.account.service.local.withdraw;

import com.niiwoo.civet.account.dao.entity.RollbackRechargeOrder;
import com.niiwoo.civet.account.dao.mapper.RollbackRechargeOrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 资金回退充值
 * Created by wangjichao on 2017/12/12.
 */
@Service
public class RollbackRechargeOrderService {

    @Autowired
    private RollbackRechargeOrderMapper rollbackRechargeOrderMapper;

    /**
     * 插入资金回退充值记录
     * @param rollbackRechargeOrder
     */
    @Transactional
    public void insertRollbackRechargeOrder(RollbackRechargeOrder rollbackRechargeOrder){
        rollbackRechargeOrderMapper.insertSelective(rollbackRechargeOrder);
    }

}
